package cn.bone.ou.vote.mapper;

import cn.bone.ou.vote.bean.VoteExtra;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface VoteExtraMapper extends BaseMapper<VoteExtra> {

    /**根据投票id删除*/
    int delteByVoteId(@Param("voteId")Integer voteId);

    List<VoteExtra> listByVoteId(@Param("voteId")Integer voteId);

    VoteExtra hasFile(@Param("fileId")Integer fileId);

    VoteExtra hasArticle(@Param("articleId")Integer articleId);

}
